import request from '@/utils/request'

export const newsList = data => request.get('/admin/news', data, { loading: true })
export const newsCreate = data => request.post('/admin/news', data, { loading: true })
export const newsUpdate = data => request.post(`/admin/news/${data.id}`, data, { loading: true })
export const newsDelete = data => request.post(`/admin/news/${data.id}`, {}, { loading: true })
